package com.itheima.demo01;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/7/11 17:28
 */
public class Demo {
    public static void main(String[] args) {
        MyThread mt = new MyThread();
        //创建线程对象;将参数传入
        Thread t = new Thread(mt);
        Thread t1 = new Thread(mt);
        //Thread t2 = new Thread(mt);
        //开启多个线程;

        t.setName("窗口一:");
        t1.setName("窗口二:");
        //t2.setName("窗口三:");
        t.start();
        t1.start();
        //t2.start();

    }
}
